﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace cart.model
{
    public class orderModel
    {
        private int _orderID;
        private string _userID;
        private string _username;
        private string _userAddr;
        private string _phone;
        private string _postType;
        private int _orderState;
        private int _paymentState;
        private DateTime _addOrderTime;
        private double _totle;
        private string _zip;


        //订单编号
        public int orderID
        {
            get
            {
                return this._orderID;
            }
            set
            {
                this._orderID = value;
            }
        }
        //下单人id
        public string userID
        {
            get
            {
                return this._userID;
            }
            set
            {
                this._userID = value;
            }
        }
        //收货人地址
        public string username
        {
            get
            {
                return this._username;
            }
            set 
            {
                this._username = value;
            }
        }
        // 收货人地址
        public string userAddr
        {
            get
            {
                return this._userAddr;
            }
            set
            {
                this._userAddr = value;
            }
        }
        //收货人电话
        public string phone
        {
            get
            {
                return this._phone;
            }
            set
            {
                this._phone = value;
            }
        }
        //邮寄类型
        public string postType
        {
            get
            {
                return this._postType;
            }
            set
            {
                this._postType = value;
            }
        }
        //订单状态
        public int orderState
        {
            get
            {
                return this._orderState;
            }
            set
            {
                this._orderState = value;
            }
        }
        //支付状态
        public int paymentState
        {
            get
            {
                return this._paymentState;
            }
            set
            {
                this._paymentState = value;
            }
        }
        //添加时间
        public DateTime addOrderTime
        {
            get
            {
                return this._addOrderTime;
            }
            set
            {
                this._addOrderTime = value;
            }
        }
        
        //订单总价格
        public double totle
        {
            get
            {
                return this._totle;
            }
            set
            {
                this._totle = value;
            }
        }

        //邮编
        public string zip
        {
            get
            {
                return this._zip;
            }
            set 
            {
                this._zip = value;
            }
        }
    }
}
